package com.digitalart.futbol.common;

import java.sql.Date;
import java.text.SimpleDateFormat;

public class DateUtil {

	public static int compararFechaActual(Date fecha){
		
		java.util.Date today = getToday();
		SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd");
		String todayStr = fmt.format(today);
		java.sql.Date dt = java.sql.Date.valueOf(new String(todayStr));
		
		return dt.compareTo(fecha);	
	}
	
	public static java.util.Date getToday(){
		return new java.util.Date();
	}
	
}
